package com.example.pan.lock.zookeeper;

import com.example.pan.lock.core.LockConstants;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: invictusQAQ
 * @Date: 2023-12-13-9:05
 * @Description: ZK属性配置
 */
@Data
@Component
@ConfigurationProperties(prefix = "com.example.pan.lock.zookeeper")
public class ZooKeeperLockProperties {

    /**
     * zk链接地址，多个用逗号隔开
     */
    private String host = "127.0.0.1:2182";
    /**
     * zk分布式锁的根路径
     */
    private String rootPath = LockConstants.R_PAN_LOCK_PATH;

}
